package server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

/**
 * 数据库存储文件
 *
 */
@Data
@AllArgsConstructor
@TableName(value = "lockfile")
public class LockFile {

    @TableId(value = "fileid",type = IdType.AUTO)
    private Integer fileid;

    private String uuid;

    private String filename;

    private String filetype;

    private Long filesize;

    private Date createtime;

    private String fileaddress;



    public LockFile(String uuid, String filename, Long filesize, String filetype, Date createtime,
                    String fileaddress) {
        this.uuid = uuid;
        this.filename = filename;
        this.filetype = filetype;
        this.filesize = filesize;
        this.createtime = createtime;
        this.fileaddress = fileaddress;
    }
}
